home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / Tools & Goodies / IntlTest / Sources / Frame.h < prev    next >
Encoding:
Text File  |  1996-08-16  |  3.0 KB  |  106 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                Frame.h
  4. //    Release Version:    $ ODF 1 $
  5. //
  6. //    Copyright:            (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef FRAME_H
  11. #define FRAME_H
  12.  
  13. // ----- Framework Includes -----
  14.  
  15. #ifndef FWFRAME_H
  16. #include "FWFrame.h"
  17. #endif
  18.  
  19. #ifndef FWDRGDRP_H
  20. #include "FWDrgDrp.h"
  21. #endif
  22.  
  23. // ----- Foundation Layer -----
  24.  
  25. #ifndef FWRECEVR_H
  26. #include "FWRecevr.h"
  27. #endif
  28.  
  29. //========================================================================================
  30. // Forward Declarations
  31. //========================================================================================
  32.  
  33. class CIntlTestPart;
  34. class CIntlTestView;
  35. class CIntlTestSelection;
  36. class FW_CEditView;
  37. class FW_CViewTabber;
  38.  
  39. //========================================================================================
  40. // CIntlTestFrame
  41. //========================================================================================
  42.  
  43. class CIntlTestFrame : public FW_CFrame, public FW_MDroppableFrame, public FW_MReceiver
  44. {
  45.   public:
  46.     FW_DECLARE_AUTO(CIntlTestFrame)
  47.  
  48.     CIntlTestFrame(    Environment* ev, 
  49.                     ODFrame* odFrame, 
  50.                     FW_CPresentation* presentation, 
  51.                     CIntlTestPart* part);
  52.  
  53.     virtual ~CIntlTestFrame();
  54.     
  55. //----------------------------------------------------------------------------------------
  56. //    Inherited API
  57. //
  58.     virtual ODDragResult    CanAcceptDrop(Environment* ev, ODDragItemIterator* dragInfo);
  59.  
  60.     virtual void            CreateSubViews(Environment* ev);
  61.  
  62.     virtual void            Draw(Environment *ev, 
  63.                                  ODFacet* odFacet, 
  64.                                  ODShape* invalidShape);
  65.  
  66.     virtual void            FacetAdded(Environment* ev, ODFacet* facet, unsigned short facetCount);
  67.  
  68.     virtual FW_CDropCommand* NewDropCommand(Environment *ev,
  69.                                             FW_CFrame* frame,
  70.                                             ODDragItemIterator* dropInfo, 
  71.                                             ODFacet* odFacet, 
  72.                                             const FW_CPoint& dropPoint);
  73.  
  74.     virtual FW_CClipboardCommand* NewClipboardCommand(Environment* ev, ODCommandID commandID);
  75.  
  76.     // ----- FW_MReceiver overrides ----- 
  77.     virtual void         HandleNotification(Environment* ev, const FW_CNotification& notification);
  78.  
  79. //----------------------------------------------------------------------------------------
  80. //    New Stuff
  81. //
  82.     FW_CEditView*        FindEditView(Environment* ev, ODID id);
  83.     ODID                GetActiveEditViewId(Environment* ev);
  84.     CIntlTestPart*        GetIntlTestPart();
  85.  
  86.     void                GetContentRect(Environment* ev, FW_CRect& rect, FW_CPoint& extent);
  87.     FW_CEditView*        HitTest(Environment* ev, const FW_CPoint& where);
  88.  
  89. //----------------------------------------------------------------------------------------
  90. //    Data Members
  91. //
  92.   private:
  93.     CIntlTestPart*         fTestPart;
  94.     CIntlTestView*        fTestView;
  95.     CIntlTestSelection*    fTestSelection;
  96.     FW_CViewTabber*        fViewTabber;
  97. };
  98.  
  99. //========================================================================================
  100. inline CIntlTestPart* CIntlTestFrame::GetIntlTestPart()
  101. {
  102.     return fTestPart;
  103. }
  104.  
  105. #endif
  106.